<?php
echo $detail->name.'<br/>';
echo $detail->status.'<br/>';
echo $detail->gender.'<br/>';
echo $detail->rate.'<br/>';
echo $detail->deliverCounter.'<br/>';
echo $detail->bio.'<br/>';
echo $detail->isPremium.'<br/>';

echo $detail->source_label.'<br/>';
echo $detail->destination_label.'<br/>';
echo $detail->via.'<br/>';
echo $detail->notes.'<br/>';
echo $detail->departTime.'<br/>';
echo $detail->priceInRupiah.'<br/>';
echo $detail->priceInPoint.'<br/>';
?>

<h3>RIWAYAT PERJALANAN</h3>
<?php 
if($riwayat){
foreach ($riwayat as $value) {
    echo $value->idTrip.'<br/>';
    $detail = $this->muser->get_trip_detail($value->idTrip);
    echo $detail->source_label.' -> '.$detail->destination_label.'<br/>';
    echo 'via '.$detail->via.'<br/>';
    echo $detail->name.'<br/>';
    echo $detail->departTime.'<br/>';
    echo $detail->priceInRupiah.'<br/>';
    echo $detail->priceInPoint.'<br/>';
    echo '<br/>';
}
} else {
	echo 'tidak ada riwayat perjalanan<br/>';
}
?>